package com.boronstream.istar.http.request;

import java.util.HashMap;
import java.util.Map;

import com.boronstream.istar.http.PlayRequest;
import com.boronstream.istar.http.response.IPhoneAppResponse;
import com.boronstream.istar.utils.CommonDefine;

public class IPhoneAppRequest implements PlayRequest<IPhoneAppResponse> {
	private final HttpMethodType HTTP_METHOD_TYPE = HttpMethodType.POST;
	private Map<String, Object> parmas= new HashMap<String, Object>();
	private Map<String, String>  headers = new HashMap<String, String>();

	@Override
	public String getApiMethodName() {
		return CommonDefine.API_METHOD_PHONE_APP;
	}

	@Override
	public Map<String, Object> getRequestParams() {
		return this.parmas;
	}

	@Override
	public Map<String, String> getRequestHeaders() {
		return this.headers;
	}

	@Override
	public void setRequestParams(Map<String, Object> parmas) {
		this.parmas = parmas;
	}

	@Override
	public String getJsonParams() {
		return null;
	}

	@Override
	public com.boronstream.istar.http.PlayRequest.HttpMethodType getHttpMethodType() {
		return HTTP_METHOD_TYPE;
	}

	@Override
	public Class<IPhoneAppResponse> getResponseClass() {
		return IPhoneAppResponse.class;
	}

}
